export const initSetting = { //富文本初始化的设置
    // selector: 'div#tinymce',
    height: '400',
    branding: false,
    elementpath: false,
    language: 'zh_CN.GB2312',
    menubar: false,
    plugins: [
        'advlist autolink lists link image charmap print preview hr anchor pagebreak imagetools',
        'searchreplace visualblocks visualchars code fullpage',
        'insertdatetime media nonbreaking save table contextmenu directionality',
        'emoticons paste textcolor colorpicker textpattern imagetools codesample'
    ],
    toolbar: [
        'undo redo | newnote preview code styleselect  | forecolor backcolor bold italic  fontselect fontsizeselect | alignleft aligncenter alignright alignjustify ',
        'link  media image table imageUpload '
    ],
    autosave_interval: '20s',
    image_advtab: true,
    statusbar: false, //底部状态栏
    theme_advanced_statusbar_location: 'bottom',
    font_formats: "微软雅黑='微软雅黑',Microsoft YaHei ;宋体='宋体', SimSun;黑体='黑体', SimHei;仿宋='仿宋', FangSong;楷体='楷体',KaiTi;隶书='隶书',LiSu;幼圆='幼圆',YouYuan;SimSun=SimSun;Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;",
    fontsize_formats: "10px 12px 14px 18px 24px 36px",
    style_formats: [ // 格式化样式 [参考](https://www.tinymce.com/docs/configure/content-formatting/#formats)
        { title: '表格边框', selector: 'td', styles: { border: '1px solid #999' } },
    ],
    style_formats_autohide: true, // 设置为 true 不匹配自动隐藏
    style_formats_merge: true, // 设置为 true 合并默认的格式化样式
    table_default_styles: {
        width: '100%',
        borderCollapse: 'collapse',
        border: '1px #999 solid'
    },
    setup: (editor) => {
        editor.addButton('imageUpload', {
            text: '上传图片',
            onclick: () => {
                let imageUpload = document.getElementById('imageUpload')
                imageUpload.click()
            },
        })
    },
}